﻿<Activity mc:Ignorable="sap" x:Class="WorkflowDemo.Module.Activities.CreateTask" xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities" xmlns:dpb="clr-namespace:DevExpress.Persistent.BaseImpl;assembly=DevExpress.Persistent.BaseImpl.v14.1" xmlns:dwa="clr-namespace:DevExpress.Workflow.Activities;assembly=DevExpress.Workflow.Activities.v14.1" xmlns:dx="clr-namespace:DevExpress.Xpo;assembly=DevExpress.Data.v14.1" xmlns:dx1="clr-namespace:DevExpress.Xpo;assembly=DevExpress.Xpo.v14.1" xmlns:local="clr-namespace:WorkflowDemo.Module.Objects" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mv="clr-namespace:Microsoft.VisualBasic;assembly=System" xmlns:mva="clr-namespace:Microsoft.VisualBasic.Activities;assembly=System.Activities" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:s1="clr-namespace:System;assembly=System"
          xmlns:s4="clr-namespace:System;assembly=System.ServiceModel" xmlns:sa="clr-namespace:System.Activities;assembly=System.Activities" xmlns:sad="clr-namespace:System.Activities.Debugger;assembly=System.Activities" xmlns:sap="http://schemas.microsoft.com/netfx/2009/xaml/activities/presentation" xmlns:scg="clr-namespace:System.Collections.Generic;assembly=System" xmlns:scg1="clr-namespace:System.Collections.Generic;assembly=System.ServiceModel"
          xmlns:scg3="clr-namespace:System.Collections.Generic;assembly=mscorlib"
          xmlns:st="clr-namespace:System.Text;assembly=mscorlib" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  <x:Members>
    <x:Property Name="issueKey" Type="InArgument(x:Object)">
      <x:Property.Attributes>
        <RequiredArgumentAttribute />
      </x:Property.Attributes>
    </x:Property>
    <x:Property Name="createdTaskKey" Type="OutArgument(x:Object)" />
  </x:Members>
  <sap:VirtualizedContainerService.HintSize>240,240</sap:VirtualizedContainerService.HintSize>
  <mva:VisualBasic.Settings>Assembly references and imported namespaces for internal implementation</mva:VisualBasic.Settings>
  <dwa:ObjectSpaceTransactionScope AutoCommit="True" sad:XamlDebuggerXmlReader.FileName="D:\2013.1\XAF\Demos\CS\WorkflowDemo\WorkflowDemo.Module\Activities\CreateTask.xaml" sap:VirtualizedContainerService.HintSize="200,200">
    <dwa:ObjectSpaceTransactionScope.Variables>
      <Variable x:TypeArguments="local:Issue" Name="issue" />
      <Variable x:TypeArguments="local:Task" Name="task" />
    </dwa:ObjectSpaceTransactionScope.Variables>
    <dwa:GetObjectByKey x:TypeArguments="local:Issue" sap:VirtualizedContainerService.HintSize="242,61" Key="[issueKey]" Result="[issue]" />
    <dwa:CreateObject x:TypeArguments="local:Task" sap:VirtualizedContainerService.HintSize="242,22" Result="[task]" />
    <Assign sap:VirtualizedContainerService.HintSize="242,58">
      <Assign.To>
        <OutArgument x:TypeArguments="x:String">[task.Subject]</OutArgument>
      </Assign.To>
      <Assign.Value>
        <InArgument x:TypeArguments="x:String">["New active issue: " + issue.Subject + " (code activity)"]</InArgument>
      </Assign.Value>
    </Assign>
    <Assign sap:VirtualizedContainerService.HintSize="242,58">
      <Assign.To>
        <OutArgument x:TypeArguments="local:Issue">[task.Issue]</OutArgument>
      </Assign.To>
      <Assign.Value>
        <InArgument x:TypeArguments="local:Issue">[issue]</InArgument>
      </Assign.Value>
    </Assign>
    <dwa:CommitChanges sap:VirtualizedContainerService.HintSize="242,22" />
    <dwa:GetObjectKey sap:VirtualizedContainerService.HintSize="242,22" Result="[createdTaskKey]" TargetObject="[task]" />
  </dwa:ObjectSpaceTransactionScope>
</Activity>